function user_add(){
    var userrole=document.getElementById('jurisdiction');
    var role = userrole.getElementsByTagName('input');
    for(var i=0;i<role.length;i++){
        if(role[i].checked){
            var userrole_value=role[i].value;
        }
    }
    var usernumber= document.getElementById('usernumber').value;
    var Realname = document.getElementById('Realname').value;
    var password =document.getElementById('password').value;
    $.ajax({
        url: '/users_add.action',
        /*/users_*.action(*的内容为list/add/del)*/
        data: {
            "usernumber": usernumber,
            "Realname": Realname,
            "password": password,
            "role": userrole_value
        },
        type: "POST",
        dataType: "JSON",
        success: function () {
            alert("添加成功");
        },
       error: function() {
             alert("success!");
         }
    });}
